<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>sss 2.0</title>
  <link href="/login/index.css" type="text/css" rel="stylesheet" />
</head>

<body>
  <div class="main">
    <div class="accIpt">
      <img src="/login/acc.png">
      <input placeholder="请输入账号" id="acc" type="text">
    </div>
    <div class="pwdIpt">
      <img src="/login/pwd.png">
      <input placeholder="请输入密码" id="pwd" type="text">
    </div>
    <div onclick="onLogin()" class="login">登录</div>
  </div>
  <script>
    function onLogin(e) {
      let accValue = document.getElementById('acc').value
      let pwdValue = document.getElementById("pwd").value
      window.location.href = `/loginUser?acc=${accValue}&&pwd=${pwdValue}`;
    }
  </script>
</body>

</html>